package com.yj.ccs.abs.web.asset.dto;

import com.yj.ccs.abs.web.common.entity.Attachment;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotNull;
import java.math.BigDecimal;
import java.time.LocalDate;
import java.util.List;

/**
 * Copyright 2018 (C) Yunjian-VC
 * Created on : 2018/3/22
 * Author     : Unbelievable9
 **/
@Data
public class CreateReceiptDto {

    @NotNull(message = "关联资产ID不能为空")
    @ApiModelProperty(value = "关联资产ID", required = true, example = "1")
    private Long asset_id;

    @NotNull(message = "发票日期不能为空")
    @ApiModelProperty(value = "发票日期", required = true, example = "2018-01-01")
    private LocalDate date;

    @NotNull(message = "发票号码不能为空")
    @ApiModelProperty(value = "发票号码", required = true, example = "02995606")
    private String number;

    @NotNull(message = "票面吨数不能为空")
    @ApiModelProperty(value = "票面吨数", required = true, example = "566800.00")
    private BigDecimal amount = BigDecimal.ZERO;

    @NotNull(message = "价税合计不能为空")
    @ApiModelProperty(value = "价税合计", required = true, example = "566800.00")
    private BigDecimal money = BigDecimal.ZERO;

    @ApiModelProperty(value = "发票文件")
    private List<Attachment> files;
}
